<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import="com.fit.user.dao.*"  %>
<%@page import="com.fit.user.entity.CaseMsgEntity"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="com.fit.user.entity.CaseMsgEntity"%>
<%
String contextPath = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+contextPath+"/";
	//根据警号得到该警员的权限
	  String policeID = (String)session.getAttribute("policeID");
  PoliceMsgDAO policeMsgDAO = new PoliceMsgDAO();
  String purview = policeMsgDAO.getPoliceMsg(policeID).getPurview();
  String policeName = policeMsgDAO.getPoliceMsg(policeID).getPoliceName();
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  	<style type="text/css">

body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #EEF2FB;
}


</style>
  	<link href="<%=contextPath%>/img/skin/skin.css" rel="stylesheet" type="text/css" />
		<link href="<%=contextPath%>/css/sic.css" rel="stylesheet" type="text/css" />
    <base href="<%=basePath%>">
    <%
    String caseID = (String)session.getAttribute("caseID");
    //得到该案件名称
    CaseMsgDAO caseMsgDAO = new CaseMsgDAO();
    CaseMsgEntity caseMsgEntity = caseMsgDAO.getCaseMsgByCaseID(caseID) ;
     String caseName = caseMsgEntity.getCaseName();
     //获得当前时间
     SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//设置日期格式
	    String currentTime = df.format(new Date());// new Date()为获取当前系统时间
     %>
<script type="text/javascript">
function gofun(_link) {
    window.top.frames('mainFrame').location.href=_link;

 }
  
 function gofun_check()
  {
  alert("对不起,您没有操作权限!");
  }
  
  function check_add()
  {
 
  if(document.getElementById("jiancharen").value=="")
  {
  alert("请输入检查人!");
  return false;
  }else if(document.getElementById("jiluren").value=="")
  {
  alert("请输入记录人!");
  return false;
  }
  else if(document.getElementById("beijiancharen").value=="")
  {
  alert("请输入被检查人!");
  return false;
  }
  else if(document.getElementById("xingbie").value=="")
  {
  alert("请输入性别!");
  return false;
  }
  else if(document.getElementById("nianling").value=="")
  {
  alert("请输入年龄!");
  return false;
  }
  
  else
  { 
    if(confirm("确认要提交吗?"))
			{
				gettime('endtime');
				  document.getElementById("divrsjc").style.display ="none";
    document.getElementById("btkaishi").disabled="false";
				return true;
			}
			else{
				return false;
			}
   
   }
  
    }
    
    
    function gettime(id)
    {

 if (!document.layers&&!document.all)
 return

 var Timer=new Date()
  var year=Timer.getFullYear()
 var month= Timer.getMonth()+1;
var  date = Timer.getDate();
  
   var hours=Timer.getHours()
 var minutes=Timer.getMinutes()
 var seconds=Timer.getSeconds()
 

 if (minutes<=9)
 minutes="0"+minutes
 if (seconds<=9)
 seconds="0"+seconds
    
   
   // alert(year+"-"+month+"-"+date+" "+hours+":"+minutes+":"+seconds);
    document.getElementById(id).value=year+"-"+month+"-"+date+" "+hours+":"+minutes+":"+seconds;
    document.getElementById("divrsjc").style.display ="block";
    document.getElementById("btkaishi").disabled="true";
    }
</script>
  </head>
  
  <body oncontextmenu=self.event.returnValue=false>
  
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="17" valign="top" background="<%=contextPath%>/img/skin/mail_leftbg.gif"><img src="<%=contextPath%>/img/skin/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="<%=contextPath%>/img/skin/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
      
        <td height="31" width="85">
          <a style="cursor:hand;" onclick="gofun('/police/police/bodyMsg.jsp')"> 
               <div class="titlebt">人身检查  
</div> </a>
        </td>
            <td height="31" width="85">
               <a style="cursor:hand;" onclick="gofun('/police/police/goods_and_material_evidencesmsg.jsp')"> 
       <div class="mytitlebt">物证保管</div>
       </a>
        </td>
            <td height="31" width="85">
              <a style="cursor:hand;" onclick="gofun('/police/msg_get.jsp')"> 
       <div class="mytitlebt">信息采集 </div>
       </a>
        </td>
            <td height="31" width="85">
         <a style="cursor:hand;" onclick="gofun('/police/police/inquiry_and_inquest.jsp')"> 
       <div class="mytitlebt">询问讯问</div>
       </a>
        </td>
            <td height="31" width="85">
         <a style="cursor:hand;" onclick="gofun('/police/police/manager_houwen.jsp')"> 
       <div class="mytitlebt">候问约束 </div>
        </td>
            <td height="31" width="85">
         <a style="cursor:hand;" onclick="gofun('/police/police/select_case.jsp')"> 
       <div class="mytitlebt">资料调阅</div>
       </a>
        </td>
        <%
				if(purview != null && purview.equals("0")){
				 %>
        <td height="31" width="85">
         <a style="cursor:hand;" onclick="gofun('/police/police/manager.jsp')"> 
       <div class="mytitlebt">县局管理</div>
       </a>
        </td>
               <%} else{%>
        
        <td height="31" width="85">
         <a style="cursor:hand;" onclick="gofun_check('')"> 
       <div class="mytitlebt">县局管理</div>
       </a>
        </td>
        <%} %>
         <td height="20" align="right">&nbsp;</td>
      </tr>
    </table></td>
    <td width="16" valign="top" background="<%=contextPath%>/img/skin/mail_rightbg.gif"><img src="<%=contextPath%>/img/skin/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  <tr>
    <td valign="middle" background="<%=contextPath%>/img/skin/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9">
		<table  width="100%" height="550" border="0" cellpadding="0" cellspacing="0" id="mybgcolor">
		
		<tr><td height="10"><b style="font-size:20;">该备案编号为:<%=caseID%></b></td></tr>
		<tr><td valign="top">
		<center><h2>邹平县公安局人身安全检查登记表</h2></center>
 <form action="<%=basePath %>/bodyMsg.do?oper=submit" method="post" onsubmit="return check_add()">
 <table> <tr><td><input type="button" id="btkaishi" value="开始" onclick="gettime('begintime')"></td></tr></table>
 <div id="divrsjc" style="display:none;">
      <table class="table_boder" id=Table5 align="center" height="100%">
     
      <tr>
      <td align="right" nowrap="nowrap">备案编号：</td>
      <td><input type="text" readonly="readonly" name="bodyMsgEntity.caseID" value =<%=caseID %>></td>
                                                    
      <td align="right"  nowrap="nowrap">案件事由：</td>
      <td><input type="text" name="bodyMsgEntity.caseName" value = <%=caseName %> ></td>
      </tr>
       <tr>
      <td align="right"  nowrap="nowrap">案件名称：</td>
      <td><input type="text" name="bodyMsgEntity.anjianmingcheng" value = "" >
  	</td>
      </tr>
        <tr>
      <td align="right"  nowrap="nowrap">时间：</td>
      <td><input type="text" id="begintime"name="bodyMsgEntity.beginTime" value = "" readonly="readonly">至
      <input type="text" id="endtime" name="bodyMsgEntity.endTime" readonly="readonly"></td>
      </tr>
        <tr>
      <td align="right"  nowrap="nowrap">检查人：</td><td><input type="text" id="jiancharen" name="bodyMsgEntity.checkMan" ><font color="red">*</font></td>
      </tr>
        <tr>
      <td align="right"  nowrap="nowrap">记录人：</td><td ><input type="text" id="jiluren" name="bodyMsgEntity.recordMan" ><font color="red">*</font>
      </td>
      <tr><td colspan="4">           <hr/></td></tr>
      </tr>
      <tr>
       <td align="right"  nowrap="nowrap">被检查人：</td><td  ><input type="text" id="beijiancharen"name="bodyMsgEntity.beCheckMan" ><font color="red">*</font></td>

      </tr>
            <tr>
      <td align="right"  nowrap="nowrap">性别：</td><td><input type="text" id="xingbie"name="bodyMsgEntity.sex" ><font color="red">*</font></td>
      <td align="right"  nowrap="nowrap">年龄：</td><td><input type="text"id="nianling" name="bodyMsgEntity.age" ><font color="red">*</font></td>
      </tr>
            <tr>
      <td align="right"  nowrap="nowrap">民族：</td><td><input type="text" name="bodyMsgEntity.ethnic" ></td>
      <td align="right"  nowrap="nowrap">身份证号：</td><td><input type="text" name="bodyMsgEntity.idCardNum" ></td>
      </tr>
            <tr>
      <td   align="right"  nowrap="nowrap">工作单位：</td><td><input type="text" name="bodyMsgEntity.workPlace" ></td>
      <td align="right"  nowrap="nowrap">联系电话：</td><td><input type="text" name="bodyMsgEntity.telNumber" ></td>
      </tr>
            <tr>
      <td align="right"  nowrap="nowrap">户籍地址：</td><td><input type="text" name="bodyMsgEntity.residenceAddress" ></td>
      <td align="right"  nowrap="nowrap">居住地址：</td><td><input type="text" name="bodyMsgEntity.liveAddress" ></td>
      </tr>
        <tr><td colspan="4">           <hr/></td></tr>
                <tr>
      <td align="right"  nowrap="nowrap">入所事由：</td><td><input type="text" name="bodyMsgEntity.reasonCome" ></td>
      <td align="right"  nowrap="nowrap">伤情：</td><td><input type="text" name="bodyMsgEntity.injuryCondition" ></td>
      </tr>
                <tr>
      <td align="right"  nowrap="nowrap">纹身：</td><td><input type="text" name="bodyMsgEntity.tatto" ></td>
      <td align="right"  nowrap="nowrap">伤疤：</td><td><input type="text" name="bodyMsgEntity.wound" ></td>
      </tr>
                <tr>
      <td align="right"  nowrap="nowrap">胎记：</td><td><input type="text" name="bodyMsgEntity.birthMark" ></td>
      <td align="right"  nowrap="nowrap">四肢：</td><td><input type="text" name="bodyMsgEntity.limbs" ></td>
      </tr>
                <tr>
      <td align="right"  nowrap="nowrap">口腔：</td><td><input type="text" name="bodyMsgEntity.oralCavity" ></td>
      <td align="right"  nowrap="nowrap">头发：</td><td><input type="text" name="bodyMsgEntity.hair" ></td>
      </tr>
      <tr>
      <td align="right"  nowrap="nowrap">腰部：</td><td><input type="text" name="bodyMsgEntity.waist" ></td>
      <td align="right"  nowrap="nowrap">腰下：</td><td><input type="text" name="bodyMsgEntity.underWaist" ></td>
      </tr>
                <tr>
      <td align="right"  nowrap="nowrap">裆部：</td><td><input type="text" name="bodyMsgEntity.crotch" ></td>
      <td align="right"  nowrap="nowrap">双腿内测：</td><td><input type="text" name="bodyMsgEntity.innerLeg" ></td>
         </tr>
                   <tr>
      <td   align="right"  nowrap="nowrap">衣裤：</td><td><input type="text" name="bodyMsgEntity.coats" ></td>
      <td   align="right"  nowrap="nowrap">鞋袜：</td><td><input type="text" name="bodyMsgEntity.footgear" ></td>
      </tr>
               <tr>
      <td align="right"  nowrap="nowrap">其他：</td><td colspan="3"><textarea rows="2" cols="70"  type="text" name="bodyMsgEntity.other" ></textarea></td>

      </tr>
       <tr>
      <td  align="right"  nowrap="nowrap" >备注：</td colspan="3"><td colspan="3"><textarea rows="2" cols="70"  type="text" name="bodyMsgEntity.remarks" ></textarea></td>
      
      </tr>
      
        <tr>
      <td colspan="2" align="center"><input type="submit" value="结束"> </td><td colspan="2"  align="center"><input type="reset" name="reset" value="重置"></td>
      
      </tr>
      </table>
      </div>
    </form>
		</td></tr></table>
	</td>
    <td background="<%=contextPath%>/img/skin/mail_rightbg.gif">&nbsp;</td>
  </tr>
  <tr>
    <td valign="bottom" background="<%=contextPath%>/img/skin/mail_leftbg.gif"><img src="<%=contextPath%>/img/skin/buttom_left2.gif" width="17" height="17" /></td>
    <td background="<%=contextPath%>/img/skin/buttom_bgs.gif"><img src="<%=contextPath%>/img/skin/buttom_bgs.gif" width="17" height="17"></td>
    <td valign="bottom" background="<%=contextPath%>/img/skin/mail_rightbg.gif"><img src="<%=contextPath%>/img/skin/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>
  
  </body>
</html>
